package mediator;

import mediator.impl.BroadCast;
import mediator.impl.Student;
import mediator.impl.Teacher;

public class Main {
    @SuppressWarnings("all")
    public static void main(String[] args) {
        AbstractBroadCast broadCast=new BroadCast();
        Teacher 李老师 = new Teacher("李老师",broadCast);
        Teacher 王老师 = new Teacher("王老师",broadCast);
        Teacher 刘老师 = new Teacher("刘老师",broadCast);
        Student 小明 = new Student("小明",broadCast);
        Student 小胡 = new Student("小胡",broadCast);

        //单发
        小明.speakTo(李老师,"李老师，可以开学了吗？");
        //群发
        李老师.speak("明天开学，带好作业。");

    }
}
